package com.heima.api.fallback;

import com.heima.api.feign.ApArticleFeignClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @Author mr.zhao
 * @Date 2025/6/25 13:41
 */
@Component
public class ApArticleFeginClientFallback implements ApArticleFeignClient {
	/**
	 * 保存三剑客
	 *
	 * @param dto
	 * @return
	 */
	@Override
	public ResponseResult save(ArticleDto dto) {
		return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
	}
}
